package com.suray.wcs.service.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suray.wcs.service.system.entity.TaskDB;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author cooper
 * @since 2019-06-26
 */
@Mapper
public interface TaskDBMapper extends BaseMapper<TaskDB> {
    List<TaskDB> findTaskByPage(Map<String, Object> map) throws Exception;

    List<TaskDB> queryTaskInfo(TaskDB taskdb);

    int deleteTasks(List<TaskDB> taskDBS);

    List<TaskDB> queryCanExecuteTask(Integer rgvNo);

    void deleteTaskForDays(Integer days);

    List<TaskDB> queryTaskForDays(Integer days);
}
